﻿using System.ComponentModel;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class TSTATUS
    {

        public TSTATUS()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_WFEVENTS();
            this.DataContext = MV;
            InitializeComponent();  
        }
        public override void OnINFOChg(string info)
        {
            base.OnINFOChg(info);

        }
        public override void OnMSGTYPChg(string mtyp)
        {
            cInfo.FontSize = 14;
            switch (mtyp)
            {
                case "None":
                    cInfo.Foreground = Brushes.Black;
                    break;
                case "Error":
                    cInfo.Foreground = Brushes.Red;
                   // cInfo.FontSize = 24;
                    break;
                case "Info":
                    cInfo.Foreground = Brushes.Black;
                    break;
                case "Verbose":
                    cInfo.Foreground = Brushes.Black;
                    break;
                case "Help":
                    cInfo.Foreground = Brushes.Black;
                    break;
                default:
                    cInfo.Foreground = Brushes.Black;
                    break;
            }
            base.OnMSGTYPChg(mtyp);
        }
    }
}
